package www.wmx.com.xssc.controller;

import lombok.Data;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import www.wmx.com.xssc.domain.vo.request.XsscRequest;
import www.wmx.com.xssc.domain.vo.result.R;
import www.wmx.com.xssc.service.XsscService;

import javax.annotation.Resource;

@Data
@RestController
@RequestMapping("/xssc/")
public class XsscController {

    @Resource
    private XsscService xsscService;


    @PostMapping("/getXsscPDF")
    public R getCheckPDF(@RequestBody XsscRequest query){
//        query.setNd("2025-00-00");
//        query.setUserCode("00001");
        return  this.xsscService.makeXssc(query);
    }
    //curl 127.0.0.1:9098/xssc/getXsscPDF -H "Content-Type: application/json" -d '{"nd":"2025-00-00","userCode":"00001"}'

}
